package com.cto.uaa.single;

/**
 * @description: 静态内部类的单例模式
 * 2.构造函数私有化
 * @author: qiu
 * @param:
 * @create: 2022-01-09
 **/
public class SingleStatic {

    private SingleStatic(){}

    private static class SingleInternal{
        private final static SingleStatic instance = new SingleStatic();
    }
    public SingleStatic getInstance(){
        return SingleInternal.instance;
    }
}
